﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BizzUI.UserControls
{
    public partial class MainRightPanel : UserControl
    {
        public MainRightPanel()
        {
            InitializeComponent();
        }
        public void initRightPanel(TreeNodeCollection nodes)
        {
            flowLayoutPanel1.Controls.Clear();
            
            foreach (TreeNode node in nodes)
            {
                IconItem item = new IconItem(node);
                flowLayoutPanel1.Controls.Add(item);
            }
        }



    }
}
